package com.medical.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.medical.mapper.DoctorinfoMapper;
import com.medical.mapper.DoctorinfoMapperCustom;
import com.medical.po.City;
import com.medical.po.Doctorinfo;
import com.medical.po.DoctorinfoCustom;
import com.medical.po.DoctorinfoQueryVo;
import com.medical.po.DoctorlogininfoCustom;
import com.medical.po.Hospitaldept;
import com.medical.po.HosporderCustom;
import com.medical.service.DoctorinfoService;

public class DoctorinfoServiceImpl implements DoctorinfoService{
	@Autowired
	private DoctorinfoMapperCustom doctorinfoMapperCustom ;
	@Autowired
	private DoctorinfoMapper doctorinfoMapper;
	@Override
	public List<DoctorinfoCustom> findItemsList(DoctorinfoQueryVo doctorinfoQueryVo)throws Exception {
		System.out.println("实现类");
		// TODO Auto-generated method stub
		return doctorinfoMapperCustom.findItemsList(doctorinfoQueryVo);
	}
	@Override
	public Doctorinfo selectByPrimaryKey(int docid) throws Exception {
		// TODO Auto-generated method stub
		return doctorinfoMapper.selectByPrimaryKey(docid);
	}
	@Override
	public int insertSelective(Doctorinfo doctorinfo) throws Exception {
		// TODO Auto-generated method stub
		return doctorinfoMapper.insertSelective(doctorinfo);
	}
	@Override
	public List<DoctorinfoCustom> findDoctorList(DoctorinfoCustom doctorinfoCustom) throws Exception {
		// TODO Auto-generated method stub
		return doctorinfoMapperCustom.findDoctorList(doctorinfoCustom);
	}
	@Override
	public List<DoctorlogininfoCustom> findDoctorloginList(DoctorlogininfoCustom DoctorlogininfoCustom)
			throws Exception {
		// TODO Auto-generated method stub
		return doctorinfoMapperCustom.findDoctorloginList(DoctorlogininfoCustom);
	}
	@Override
	public List<HosporderCustom> findHospOrderList(HosporderCustom hosporderCustom) throws Exception {
		// init table hosporder
		return doctorinfoMapperCustom.findHospOrderList(hosporderCustom);
	}
	@Override
	public int InsertHospOrder(HosporderCustom hosporderCustom) throws Exception {
		// TODO Auto-generated method stub
		return doctorinfoMapperCustom.InsertHospOrder(hosporderCustom);
	}
	@Override
	public int countdoctorList() throws Exception {
		// TODO Auto-generated method stub
		return doctorinfoMapperCustom.countdoctorList();
	}
	@Override
	public List<DoctorlogininfoCustom> paginationDoctorList(DoctorlogininfoCustom doctorlogininfoCustom)
			throws Exception {
		// TODO Auto-generated method stub
		return doctorinfoMapperCustom.paginationDoctorList(doctorlogininfoCustom);
	}
	@Override
	public List<City> getCity(City city) throws Exception {
		// TODO Auto-generated method stub
		return doctorinfoMapperCustom.getCity(city);
	}
	@Override
	public List<Hospitaldept> getHospitalDept(Hospitaldept hospitaldept) throws Exception {
		// TODO Auto-generated method stub
		return doctorinfoMapperCustom.getHospitalDept(hospitaldept);
	}
}
